Skip to content

Default to dark mode - #43

Merged
duckyquang merged 1 commit into
mainfrom
feat/default-dark-mode
Jul 16, 2026
Merged

Default to dark mode#43
duckyquang merged 1 commit into
mainfrom
feat/default-dark-mode

Conversation

@duckyquang

Copy link
Copy Markdown
Owner

Sets the app's default theme to dark instead of following the OS prefers-color-scheme (which showed light on light-OS machines).

  • getTheme() now falls back to "dark" when there's no saved choice.
  • Removed the OS-follow effect + the unused systemTheme() helper — it would flip an unpinned session back to light when the OS is light, contradicting the new default.
  • The light/dark toggle still works and persists the user's choice in localStorage.

Verified in the browser: with OS set to light and no saved theme, <html> still gets the dark class ({osPrefersDark:false, savedTheme:null, htmlHasDarkClass:true}). npm run build passes.

🤖 Generated with Claude Code

Unpinned sessions now open in dark; the light/dark toggle still lets
users choose (and persists their choice). Removes the OS-follow effect,
which would otherwise flip an unpinned session back to light on a
light-OS machine.

Co-Authored-By: Claude Fable 5 <[email protected]>
@duckyquang
duckyquang merged commit ae233fc into main Jul 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant